﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.master"  Inherits="System.Web.Mvc.ViewPage<EPiServer.Models.Page>" %>
<%@ Import Namespace="EPiServer" %>
<%@ Import Namespace="EPiServer.Models" %>
<asp:Content ContentPlaceHolderID="MainBodyRegion" runat="server">
	<div id="MainBody">
        <h1><%= Model.Heading %></h1>
	    <%= Model.MainBody %>
        
        <% Html.RenderPartial("PageList", new ListData {Title=Model.NewsRoot.Title(), List=Model.MainList}); %>
    </div>

</asp:Content>

<asp:Content ContentPlaceHolderID="SecondaryBodyRegion" runat="server">
    
	<div id="SecondaryBody">
    <% if (Model.PageType != "Page") { %>
		<dl>
			<dt><%= EPiServer.Html.Translate("/news/writername")%></dt>
			<dd><%= Model.MetaAuthor %></dd>
			<dt><%= EPiServer.Html.Translate("/news/publishdate")%></dt>
			<dd><%= Model.PageStartPublish.ToString("d") %></dd>
		</dl>
    <% } %> 

		<%= Model.SecondaryBody %>
		
        <% Html.RenderPartial("PageList", new ListData { Title = Model.SecondaryListRoot.Title(), List = Model.SecondaryList }); %>
	</div>

</asp:Content>